
<div class="span-18">
	<h1>User Management</h1>
	
	<p>manage people who can login here</p>
	<table>
		<tr>
			<th>#</th>
			<th>Loginname</th>
			<th>Real Name</th>
			<th>Active</th>
			<th>Admin</th>
			<th>Menu</th>
		</tr>
		{foreach $users as $user_id=>$user}
			<tr>
				<td>{$user_id}</td>
				<td>{$user.loginname}</td>
				<td>{$user.name}</td>
				<td align="center">
					{if $user.active=='true'}
						<img src="static/img/tick.png" alt="active" title="active" />
					{else}
						<img src="static/img/cross.png" alt="inactive" title="inactive" />
					{/if}
				</td>
				<td align="center">
					{if $user.administrator=='true'}
						<img src="static/img/tick.png" alt="active" title="active" />
					{else}
						<img src="static/img/cross.png" alt="inactive" title="inactive" />
					{/if}
				</td>
				<td>
					<a href="?action=userManagementLogUser&user_id={$user_id}" title="Log Entries for User {$user.loginname}" onclick="Modalbox.show(this.href, { title: this.title, width: 600 }); return false;">
						<img src="static/img/book.png" alt="log" />
					</a>
					
					<a href="?action=userManagementEditUser&user_id={$user_id}" title="Edit User {$user.loginname}" onclick="Modalbox.show(this.href, { title: this.title, width: 600 }); return false;">
						<img src="static/img/pencil.png" alt="edit" />
					</a>
					
					<a href="?action=userManagementDeleteUser&user_id={$user_id}" title="Delete User {$user.loginname}" onclick="Modalbox.show(this.href, { title: this.title, width: 600 }); return false;">
						<img src="static/img/delete.png" alt="delete" />
					</a>
				</td>
			</tr>
		{/foreach}
	</table>
</div>

{include file="navigation.tpl" action="userManagement"}
